package com.shoesdemo.activity;


import android.content.Intent;
import android.view.View;

import com.shoesdemo.BaseActivity;
import com.shoesdemo.R;
import com.shoesdemo.dialog.ColorSelectDialog;

public class TomorrowMainActivity extends BaseActivity implements View.OnClickListener {

    @Override
    protected void initView() {
        actionBar.hide();
    }

    @Override
    protected void initListener() {
        findViewById(R.id.tv_introduce).setOnClickListener(this);
        findViewById(R.id.tv_nomal_tomorrow).setOnClickListener(this);
        findViewById(R.id.tv_set_tomorrow).setOnClickListener(this);
        findViewById(R.id.tv_my_tomorrow).setOnClickListener(this);
        findViewById(R.id.tv_share_tomorrow).setOnClickListener(this);
        findViewById(R.id.tv_one_picture).setOnClickListener(this);
        findViewById(R.id.iv_setting).setOnClickListener(this);
    }

    @Override
    public int getLayoutView() {
        return R.layout.activity_tomorro;
    }

    @Override
    protected void initData() {

    }

    @Override
    public void onClick(View v) {
        Class aClass = null;
        switch (v.getId()) {
            case R.id.tv_introduce:
                break;
            case R.id.tv_nomal_tomorrow:
                aClass = TomorrowActivity.class;
                break;
            case R.id.tv_set_tomorrow:
                aClass = SettingTomorrowActivity.class;
                break;
            case R.id.tv_my_tomorrow:
                aClass = HistoryActivity.class;
                break;
            case R.id.tv_share_tomorrow:
                break;
            case R.id.tv_one_picture:
                aClass = PictureActivity.class;
                break;
            case R.id.iv_setting:
                ColorSelectDialog.getInstance().show(getSupportFragmentManager(), "");
                break;
        }
        if (aClass != null) {
            Intent intent = new Intent(TomorrowMainActivity.this, aClass);
            startActivity(intent);
        }
    }
}
